//
//  ToolBar.m
//  WuJieLive
//
//  Created by iMac on 2017/12/4.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import "ToolBar.h"

@implementation ToolBar

-(void)awakeFromNib
{
    [super awakeFromNib];
    self.selectAllBtn.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 10);
}

- (IBAction)selectAllAction:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    if (self.selectAllBlock) {
        self.selectAllBlock(sender.selected);
    }
}
- (IBAction)settleAction:(UIButton *)sender {
    if (self.settleBlock) {
        self.settleBlock(sender);
    }
}

@end
